/* UFDecorator.java
*  Criado em 02/12/2005
*
*/
package br.com.werp.regras.endereco.visao.decorador;

import br.com.werp.regras.geral.util.Html;
import br.com.werp.regras.geral.vos.tabelas.Uf;

import org.displaytag.decorator.TableDecorator;

import java.util.HashMap;
import java.util.Map;


/**
 * @author Rafael Carneiro - <a href = "mailto:rafael@portaljava.com">
 * rafael@portaljava.com</a>
 */
public class UFDecorator extends TableDecorator {
    public String getUnfd_descricao() {
        Uf uf = (Uf) getCurrentRowObject();

        Map map = new HashMap();
        map.put("carregar_action", "");
        map.put("unfd_id", new Integer(uf.getUnfd_id()));

        return Html.href("../Enderecos/UFForm.do", map) +
        uf.getUnfd_descricao() + "</a>";
    }
}
